<?php

$cnf = Zend_Registry::get('cnf');

fwrite(STDOUT, "\tDatabase host:      {$cnf->db->params->host}\n");
fwrite(STDOUT, "\tDatabase username:  {$cnf->db->params->username}\n");
fwrite(STDOUT, "\tDatabase password:  {$cnf->db->params->password}\n");
fwrite(STDOUT, "\tDatabase name:      {$cnf->db->params->dbname}\n");
fwrite(STDOUT, "Continue [yes/no]?: ");

$answer = trim(fgets(STDIN));

if ($answer != 'yes')
    exit("Terminated\n");
